package top.wangjiu.reactive.rpc.registration;

import top.wangjiu.reactive.rpc.model.RpcService;

import java.lang.reflect.Method;

/**
 * @ClassName ServerRegister
 * @Description 服务注册器，默认实现LocalServerRegister,未来集成注册中心
 * @Author wangjiu
 * @Date 2021/7/15 7:26 下午
 */
public interface ServerRegister {

    <T> void registService(Class<T> service,int version,T instance);

    RpcService getService(String service, int version);

}
